package com.aforce3.trailertracer.particles;

import javax.vecmath.Point3d;
import javax.vecmath.Vector3d;

import com.aforce3.trailertracer.scenes.Triangle;

public class Particle extends Triangle
{
	public Particle(Point3d position)
	{
		super(generateLocalPoint(position), generateLocalPoint(position), generateLocalPoint(position));
		getMaterial().setReflectivity(0);
	}
	
	protected static Point3d generateLocalPoint(Point3d position)
	{
		Point3d output = new Point3d(position);
		output.add(new Vector3d(Math.random()/50, Math.random()/50, Math.random()/50));
		return output;
	}
}

